const app     = require('koa')(),
      session = require('koa-session');

app.keys = ['some secret hurr'];

app.use(session(app, {
    key: 'openId'
}));

app.use(function *() {
    if (this.path === '/favicon.ico') {
        return;
    }

    var n = this.session.views || 0;
    this.session.views = ++n;
    this.body = n + 'views';
});

app.listen(3003);